package com.upic.po;

import com.upic.base.entiy.BaseEntity;
import com.upic.enums.ExaminationStatusEnum;
import com.upic.enums.ExaminationTypeEnum;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by zhubuqing on 2018/2/7.
 */
@Data
@Entity
public class Examination extends BaseEntity {
    private String name; // 考试名称

    @Temporal(TemporalType.TIMESTAMP)
    private Date startTime; // 开始时间

    @Temporal(TemporalType.TIMESTAMP)
    private Date endTime; // 结束时间

    @Enumerated(EnumType.STRING)
    private ExaminationTypeEnum type; // 考试类型

    @Enumerated(EnumType.STRING)
    private ExaminationStatusEnum status; // 考试类型

    private String brief; // 考试简介

    private String theme; // 主题

    private int timeLimit; // 时间限制
}
